home *** CD-ROM | disk | FTP | other *** search
- Path: news.dds.nl!usenet
- From: tjoen oei <tjoen@dds.nl>
- Newsgroups: comp.lang.c++
- Subject: Re: Accessing base methods?
- Date: 16 Mar 1996 15:42:56 GMT
- Organization: De Digitale Stad (http://www.dds.nl/, 020-6225222)
- Message-ID: <4ieni0$nti@alibaba.dds.nl>
- References: <RobTerrell-1503961232280001@slip129-37-240-94.nc.us.ibm.net>
- NNTP-Posting-Host: dyna144.dial.dds.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
-
- RobTerrell@vmedia.com (Rob Terrell) wrote:
-
- >class base {
- >
- > virtual void Move();
- >}
- >
- >class derived : public base {
- >
- > void Move();
- >}
-
- >void derived::Move()
- >{
- >
- > // do stuff here
- >
- > // Now I want to call the base class' Move
-
-
-
- base::Move();
- // that's all :-)
-
-
- >}
-
-
-